package com.sfj.system.dto.userinfo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;


/**
 * 操作员信息更新DTO
 *
 * @author kaka
 * @date 2020-09-24
 */
@Data
@ApiModel(value = "操作员信息更新req", description = "操作员信息更新req")
public class UserInfoUpdDTO {

    @NotNull(message = "用户id不能为空")
    @ApiModelProperty(value = "用户id", example = "1")
    private Integer userId;

    @NotBlank(message = "用户名称不能为空")
    @Size(max = 16, message = "用户名称不能大于32位")
    @ApiModelProperty(value = "用户名称", example = "张三", required = true)
    private String name;

    @Size(max = 11, message = "手机号不能超过11位")
    @ApiModelProperty(value = "手机号", example = "1381234567", required = true)
    private String iphone;

    @NotBlank(message = "警号不能为空")
    @Size(max = 10, message = "警号不能超过10位")
    @ApiModelProperty(value = "警号", example = "J123456", required = true)
    private String policeNum;

    @NotNull(message = "角色不能为空")
    @ApiModelProperty(value = "用户角色ID", example = "1", required = true)
    private Integer role;

    @NotNull(message = "组织ID不能为空")
    @ApiModelProperty(value = "用户组织ID", example = "2", required = true)
    private Integer group;

    @NotNull(message = "科室ID不能为空")
    @ApiModelProperty(value = "科室ID", example = "3", required = true)
    private Integer dept;
}